import {update} from "@/utils/db";

export async function addMessage({name, message, subject, email}: {
    name: string,
    email: string,
    subject: string,
    message: string
}) {
    let res = await update('insert into `contact-message` (name, email, subject, message) values  (?,?,?,?)', [name, email, subject, message])
    return res.insertId
}